<template>
<h1>选择器组件</h1>
<el-select style="width: 50%" placeholder="请选择一个你喜欢的城市" v-model="city">
  <el-option label="北京" value="北京"></el-option>
  <el-option label="上海" value="上海"></el-option>
  <el-option label="常州" value="常州"></el-option>
  <el-option label="武汉" value="武汉"></el-option>
</el-select>
  <h3>您选择的城市是:{{city}}</h3>
</template>

<script setup>
import {ref} from 'vue';
const city = ref('上海');
</script>


<style scoped>

</style>